package JavaSE.d4;
//代码演示String类的replace的用法
public class Test10 {
    public static void main(String[] args) {
        String s1="ABCDefgh";
        String s2=s1.replace("D","**");//replace("要被替换字串","替代其的字串")
    }
}
